home *** CD-ROM | disk | FTP | other *** search
- on mouseDown me
- global gMaxMulti, gCurrMulti
- if stageTop() = 0 then
- exit
- end if
- set mySprite to the spriteNum of me
- set ContrsSprite to mySprite + 4
- set deltaV to the mouseV - the locV of sprite mySprite
- repeat while the stillDown
- set HA to float(the locV of sprite mySprite) - float(the top of sprite ContrsSprite)
- set Perc to HA / float(the height of sprite ContrsSprite)
- set GoTo to integer(gMaxMulti * Perc)
- if GoTo = 0 then
- set GoTo to 1
- end if
- set the locV of sprite mySprite to constrainV(ContrsSprite, the mouseV - deltaV)
- updateStage()
- end repeat
- updateStage()
- set gCurrMulti to GoTo
- end
-